Skip to content

Mark std::as_bytes as inline #26024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2015
Merged

Mark std::as_bytes as inline #26024

merged 1 commit into from
Jun 5, 2015

Conversation

Aatch
Copy link
Contributor

@Aatch Aatch commented Jun 5, 2015

This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around mem::transmute.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.

This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around `mem::transmute`.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.
@rust-highfive
Copy link
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

@Gankra
Copy link
Contributor

Gankra commented Jun 5, 2015

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 5, 2015

📌 Commit beadbfd has been approved by Gankro

bors added a commit that referenced this pull request Jun 5, 2015
This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around `mem::transmute`.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.
@bors
Copy link
Collaborator

bors commented Jun 5, 2015

⌛ Testing commit beadbfd with merge c78c099...

@bors bors merged commit beadbfd into rust-lang:master Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants